package day013.regex;

public class RegexDemo01 {
    public static void main(String[] args) {
        System.out.println("had".matches("h[aeiou]d"));
        System.out.println("hwd".matches("h[^aeiou]d"));
        System.out.println("aad".matches("[a-z]ad"));
        System.out.println("bad".matches("[a-dm-p]ad"));
    }
}
